﻿using System;
using System.Globalization;
using PayRoller.Code;
using HySoft.Cash;

namespace PayRoller.Manage
{
    public partial class Test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            //this.Button1.Text= DateTime.Now.ToString(AppSettings.SystemCulture);
            DateTime dateConverted= new DateTime();
            DateTime.TryParse("15/1/2010", AppSettings.SystemCulture, DateTimeStyles.None, out dateConverted);
            this.Button1.Text = dateConverted.ToString("d");
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            //this.Button2.Text = DateTime.Now.ToString(AppSettings.DataBaseCulture);
            DateTime dateConverted = new DateTime();
            DateTime.TryParse("1/15/2010", AppSettings.DataBaseCulture, DateTimeStyles.None, out dateConverted);
            this.Button2.Text = dateConverted.ToString("d");
        }

        protected void 设置_Click(object sender, EventArgs e)
        {
            this.TXTFormatDate1.Text = "1/15/2010";
        }

        protected void 获取_Click(object sender, EventArgs e)
        {
            this.获取.Text = this.TXTFormatDate1.Text;
        }
    }
}
